{php}
$values=isset($row['values'])?$row['values']:[];
{/php}


<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input type="hidden" name="key" value="{:input('key')}">
    <div class="row content">


        <div class="table-responsive1">
            <table id="table" class="table table-striped table-bordered table-hover table-nowrap">
                <thead>

                <th>字段</th>
                <th>验证码方式</th>
                <th>扩展信息(预留字段)</th>
                </thead>
                <tbody>
                {php}
                    $key=input('key');
                    $fields_list=isset($data_fields[$key])?$data_fields[$key]:[];
                {/php}

                {foreach $fields_list as $k=>$vo}
                <tr>

                    <td>
                        <label class="control-label">
                            {$vo}
                        </label>

                    </td>
                    <td>
                        <input type="hidden" name="row[{$k}][title]" value="{$vo}">
                        <input type="hidden" name="row[{$k}][name]" value="{$k}">
                        <input  class=" selectpage" data-source="facrm/fields/rulelist" data-multiple="true" name="row[{$k}][rule]" type="text"
                                value="{:isset($values[$k])?$values[$k]['rule']:''}">
                    </td>
                    <td>
                        <input  class="form-control" name="row[{$k}][extend]" value="{:isset($values[$k])?$values[$k]['extend']:''}" ></input>
                    </td>

                </tr>
                {/foreach}


                </tbody>
            </table>


        </div>

        <div class="form-group layer-footer">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 col-sm-8">
                <button type="submit" class="btn btn-success btn-embossed disabled">{:__('submit')}</button>
                <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
            </div>
        </div>
</form>







